package cn.quevo.ucenter.client.service.impl;

import cn.quevo.core.exception.CustomException;
import cn.quevo.ucenter.client.dao.ClientRestDao;
import cn.quevo.ucenter.client.service.AbstractClientRestService;
import cn.quevo.ucenter.client.service.ClientRestService;
import cn.quevo.ucenter.core.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("clientRestService")
public class ClientRestServiceImpl extends AbstractClientRestService implements ClientRestService {

    @Resource(name = "clientRestDao")
    private ClientRestDao clientRestDao;
    
    @Override
    public User getUserByToken(String token) throws CustomException {
        return clientRestDao.getUserByToken(token);
    }

}
